﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "header/xlsxdocument.h"
#include <QList>
#include <QFileDialog>
#include <QMessageBox>
#include <QDebug>
#include <QThread>
#include "srcwidget.h"
#include "readfile.h"


QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE





class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QStringList searchInFile(QString filePath, QString objName);


protected slots:
    void resultToolButtonClicked();
    void runButtonClicked();
    void addInputButtonClicked();
    void delInputButtonClicked();

private:
    void finisedSlots();


private:
    Ui::MainWindow *ui;
    QStringList resTitleList;
    QXlsx::Document* outFile;
    QVector<QThread*> threadVector;
    int count = 0;
};
#endif // MAINWINDOW_H
